package com.easy.bean;

import io.micrometer.common.lang.Nullable;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Message {
    private Integer id;
    private String username;
    @Nullable
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private String content;
    private Integer is_deleted = 0;
}